import { createWebHistory, createRouter } from "vue-router";

const routes = [
    {
        path: "/login-home",
        name: "login-home",
        component: () => import("../views/Login-Home.vue"),
    },
    {
        path: "/register-home",
        name: "register-home",
        component: () => import("../views/Register-Home.vue"),
    },
    {
        path: "/user-register",
        name: "user-register",
        component: () => import("@/views/User-Register.vue")
    },
    {
        path: "/user-home",
        name: "user-home",
        component: () => import("@/views/User-Home.vue")
    },
    {
        path: "/ai-scan",
        name: "ai-scan",
        component: () => import("@/views/AiScan.vue")
    },
    {
        path: "/appt-service",
        name: "appt-service",
        component: () => import("@/views/ApptService.vue")
    },
    {
        path: "/user-center",
        name: "user-center",
        component: () => import("@/views/UserCenter.vue")
    },
    {
        path: "/scan-result",
        name: "scan-result",
        component: () => import("@/views/identifyResult.vue")
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

export default router